<%--
  Created by IntelliJ IDEA.
  User: edy
  Date: 2022/4/3
  Time: 12:50 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.3.1.min.js"></script>
<script>
  $(function (){
    $("#jian").bind("input propertychange",function(){
      var jian = $("#jian").val();
       $.post("/web08/ajax2",{"jian":jian},function (data) {
           $("#fan").val(data)

       },"text")


    })

  })

</script>


<body>




<input type="text" id="jian">
<input type="text" id="fan">
</body>
</html>
